package com.mingqijia.gassafety.webserver.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-03-07
 */
@ApiModel(value = "探测器 通讯记录")
@Data
public class DetectorMeasureLogResponse {

    @ApiModelProperty("平台接收时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;

    @ApiModelProperty(value = "检测类型  T-甲烷;M-一氧化碳;Y-丙烷;Q-其他")
    private String detectionType;

    @ApiModelProperty("气体浓度")
    private String xLEL;

    // 老版: 0:离线 1:正常 2:低报 3:高报 4:故障 5:过期
    @ApiModelProperty("探头报警状态 0-正常 1-低限报警 2-高限报警 3-正常")
    private Integer alarm;

    @ApiModelProperty("故障: false未故障")
    private Boolean broken;

}
